package com.kidfruit.aop;

import org.springframework.stereotype.Component;

/**
 * Created by kidfruit on 2016/12/2 002.
 */
@Component
public class Human implements Sleepable {

    private static int num = 0;

    @Override
    public void sleep() {
        System.out.println("human sleep");
    }

    @Override
    public int calc() {
        System.out.println("human calc = " + ++num);
        return num;
    }
}
